package com.example.demo.pojo.vo;


import com.example.demo.pojo.entity.ExamFile;
import com.example.demo.pojo.entity.SubjectFile;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 前端展示的文件树
 * @author 21172
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ExamFileShowVO {
    private int id;
    private String fileName;
    private String createUser;
    private int level;
    List<ExamFileShowVO> examFileList=new ArrayList<>();

    public void initExamFile(ExamFile examFile){
        this.id=examFile.getId();
        this.fileName=examFile.getFileName();
        this.level=examFile.getLevel();
    }
}
